package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 优惠券对象 user_yhj
 * 
 * @author ruoyi
 * @date 2022-05-24
 */
public class UserYhj extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 劵码 */
    @Excel(name = "劵码")
    private String code;

    /** 用户的id */
    @Excel(name = "用户的id")
    private Integer userId;

    /** 使用订单id */
    @Excel(name = "使用订单id")
    private Integer orderId;

    /** 使用时间 */
    @Excel(name = "使用时间")
    private Integer useTime;

    /** 兑换时间 */
    @Excel(name = "兑换时间")
    private Integer dTime;

    /** 0未兑换 1未使用 2使用 */
    @Excel(name = "0未兑换 1未使用 2使用")
    private Integer status;

    /** 优惠券金额 */
    @Excel(name = "优惠券金额")
    private Integer money;

    /** 使用金额 */
    @Excel(name = "使用金额")
    private Integer useMoney;

    /** 添加时间 */
    @Excel(name = "添加时间")
    private Integer addtime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long creator;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setOrderId(Integer orderId) 
    {
        this.orderId = orderId;
    }

    public Integer getOrderId() 
    {
        return orderId;
    }
    public void setUseTime(Integer useTime) 
    {
        this.useTime = useTime;
    }

    public Integer getUseTime() 
    {
        return useTime;
    }
    public void setdTime(Integer dTime) 
    {
        this.dTime = dTime;
    }

    public Integer getdTime() 
    {
        return dTime;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setMoney(Integer money) 
    {
        this.money = money;
    }

    public Integer getMoney() 
    {
        return money;
    }
    public void setUseMoney(Integer useMoney) 
    {
        this.useMoney = useMoney;
    }

    public Integer getUseMoney() 
    {
        return useMoney;
    }
    public void setAddtime(Integer addtime) 
    {
        this.addtime = addtime;
    }

    public Integer getAddtime() 
    {
        return addtime;
    }
    public void setCreator(Long creator) 
    {
        this.creator = creator;
    }

    public Long getCreator() 
    {
        return creator;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("userId", getUserId())
            .append("orderId", getOrderId())
            .append("useTime", getUseTime())
            .append("dTime", getdTime())
            .append("status", getStatus())
            .append("money", getMoney())
            .append("useMoney", getUseMoney())
            .append("addtime", getAddtime())
            .append("creator", getCreator())
            .append("createDate", getCreateDate())
            .toString();
    }
}
